/**
 * 角色列表查询参数
 */
export interface RoleListParam {
    userId: string | number,
    currentPage: number,
    pageSize: number,
    name: string,
    total: number
}

/**
 * 角色新增
 */
export interface AddRoleModel {
    id: number | string,
    name: string,
    remark: string,
    createUser: string | number,
    type: string, // 区分新增/编辑
}

/**
 * 删除角色
 */
 export interface DeleteRoleModel {
    id: number | string
}

// 分配权限树数据查询参数
export interface AssignTreeParams {
    userId: number | string,
    roleId: number | string
}

// 分配权限保存参数
// 定义数组类型 
// let arr1: number[] = [1,2,3] 
// let arr2: Array<number> = [1,2,3] 
export interface AssignSaveParams {
    roleId: number | string,
    list: Array<number | string>
}